From: Vijaya Kumar K Date: Wed, 4 Mar 2015 06:06:24 +0000 (+0530) Subject: xen/arm: Add early printk support for ThunderX platform X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3663 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=386627b10ec2cef2f1deca06236046b7d5c9abe3;p=xen.git xen/arm: Add early printk support for ThunderX platform ThunderX platform uses pl011 uart. Signed-off-by: Vijaya Kumar K Acked-by: Ian Campbell [ ijc -- added to early-printk.txt ] --- diff --git a/docs/misc/arm/early-printk.txt b/docs/misc/arm/early-printk.txt index 1ca2a5530a..859c63528d 100644 --- a/docs/misc/arm/early-printk.txt +++ b/docs/misc/arm/early-printk.txt @@ -20,6 +20,7 @@ where mach is the name of the machine: - hip04-d01: printk with 8250 on HiSilicon Hip-04 D01 - seattle: printk with pl011 for AMD Seattle processor - lager: printk with SCIF0 on Renesas R-Car H2 processors + - thunderx: printk with pl011 for Cavium ThunderX processor The base address and baud rate is hardcoded in xen/arch/arm/Rules.mk, see there when adding support for new machines. diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index c7bd227d17..54efa91dca 100644 --- a/xen/arch/arm/Rules.mk +++ b/xen/arch/arm/Rules.mk @@ -113,6 +113,10 @@ ifeq ($(CONFIG_EARLY_PRINTK), lager) EARLY_PRINTK_INC := scif EARLY_UART_BASE_ADDRESS := 0xe6e60000 endif +ifeq ($(CONFIG_EARLY_PRINTK), thunderx) +EARLY_PRINTK_INC := pl011 +EARLY_UART_BASE_ADDRESS := 0x87e024000000 +endif ifneq ($(EARLY_PRINTK_INC),) EARLY_PRINTK := y